package cn.bluedot.model;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 *
 * @author 余聪
 * @time:2019年5月1日上午10:32:03
 *
 */
public class EquipmentExceptionVo {
	private Integer excId;
	private Integer equId;
	private Integer pigstyId;
	private Integer hogcoteId;
	private Integer pigId;
	private String equType;
	private String equName;
	private Integer workState;
	private String handleUserName;
	private Date excTime;
	private Date handleTime;
	private Integer handleMethod;
	public Integer getExcId() {
		return excId;
	}
	public void setExcId(Integer excId) {
		this.excId = excId;
	}
	public Integer getEquId() {
		return equId;
	}
	public void setEquId(Integer equId) {
		this.equId = equId;
	}

	public Integer getPigstyId() {
		return pigstyId;
	}
	public void setPigstyId(Integer pigstyId) {
		this.pigstyId = pigstyId;
	}
	public Integer getHogcoteId() {
		return hogcoteId;
	}
	public void setHogcoteId(Integer hogcoteId) {
		this.hogcoteId = hogcoteId;
	}
	public Integer getPigId() {
		return pigId;
	}
	public void setPigId(Integer pigId) {
		this.pigId = pigId;
	}
	public String getEquType() {
		return equType;
	}
	public void setEquType(String equType) {
		this.equType = equType;
	}
	public String getEquName() {
		return equName;
	}
	public void setEquName(String equName) {
		this.equName = equName;
	}
	public String getWorkState() {
		return workState==0?"关闭":"启动";
	}
	public void setWorkState(Integer workState) {
		this.workState = workState;
	}
	public String getHandleUserName() {
		return handleUserName;
	}
	public void setHandleUserName(String handleUserName) {
		this.handleUserName = handleUserName;
	}
	public String getExcTime() {
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return dateFormat.format(excTime);
	}
	public void setExcTime(Date excTime) {
		this.excTime = excTime;
	}
	public String getHandleTime() {
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return dateFormat.format(handleTime);
	}
	public void setHandleTime(Date handleTime) {
		this.handleTime = handleTime;
	}
	public String getHandleMethod() {
		switch (handleMethod) {
		case 0:
			return "关闭";
		case 1:
			return "开启";
		case 2:
			return "重启";
		default:
			break;
		}
		return "";
	}
	public void setHandleMethod(Integer handleMethod) {
		this.handleMethod = handleMethod;
	}
	
}
